/**
  Function：动态生成列样式
  Params:
  @gridIdx:列的索引
  @colNum:列的数量
  @screen:屏幕类型
 */
@colNum: 10;
.do-column(@gridIdx,@screen) when (@gridIdx>0) {
  .do-column(@gridIdx - 1, @screen);
  .col-@{screen}-@{gridIdx} {
    width: 100%/@colNum*@gridIdx;
    box-sizing: border-box;
    float: left;
    border: 1px solid yellow;
    background-color: #0e4d8c;
  }
  .col-@{screen}-offset-@{gridIdx} {
    margin-left: 100%/@colNum*@gridIdx;
  }
  .col-@{screen}-push-@{gridIdx} {
    position: relative;
    left: 100%/@colNum*@gridIdx;
  }
  .col-@{screen}-pull-@{gridIdx} {
    position: relative;
    left: -(100%/@colNum*@gridIdx);
  }
}

/*移动设备小屏幕 xs---------------------------------------------*/
.container-fluid {
  display: block;
  width: 100%;
}

.container {
  display: block;
  width: 100%;
  margin: 0 auto;
  background-color: #0e4d8c;
}

.row:after {
  content: '';
  display: block;
  clear: both;
}

.do-column(10, xs);

/*平板小屏幕-----------------------------------------------------*/

@media all and (min-width: 768px) {
  .container {
    width: 750px;
    background-color: red;
  }

  .do-column(10, sm)
}

/*中等屏幕-------------------------------------------------------*/
@media all and (min-width: 992px) {
  .container {
    width: 970px;
    background-color: #e260d6;
  }

  .do-column(10, md)
}

/*超大屏幕-------------------------------------------------------*/
@media all and (min-width: 1200px) {
  .container {
    width: 1170px;
    background: #333039;
  }

  .do-column(10, lg)
}